home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
util
/
convert-2.01.lha
/
Convert
/
OS 2.0
/
ConvertDocs.txt
< prev
next >
Wrap
Text File
|
1993-12-21
|
16KB
|
413 lines
» » » » » C O N V E R T « « « « «
version 2.01, November 22th, 1992
User Manual
***************************************************************
Contents
1. Introduction - What does "Convert" ?
2. Getting started
3. Working with "Convert"
4. Creating own conversion descriptions
5. Error messages
6. The shell version "Cvt"
***************************************************************
1. Introduction
"Convert" is a powerful file conversion program. It covers the
application domain of all ASCII conversion tools between Amiga
and MS-DOS or any other computer system. This means, that file
conversion with "Convert" does NOT affect the physical format of
a file but only its contents. Physical conversion is not subject
of "Convert" and thus assigned to tools like "CrossDOS".
"Convert" can be used to replace bytes or pairs of bytes in a
file by another byte or another pair of bytes or by nothing.
Therefore it can be used for tasks as follows:
- replacing TABs in an ASCII file with blank character(s)
- stripping controls in an ASCII file
- converting ASCII-files between Amiga and MS-DOS, MS-DOS and
Amiga, Amiga and Mac, Mac and Sun, Amiga and Sun etc.
What are "conversion descriptions" ?
All that "Convert" needs, is a set of "replacement records"
which it can apply to its input files. This set is in the
following called "conversion description".
You can create your individual conversion descriptions by
creating several "replacement records" with a text editor using
the simple syntax described in chapter 4. These "records" are
stored to a conversion description file which can be parsed by
"Convert".
The draft of specifying the conversion by a simple text file
makes "Convert" more powerful than any other conversion tool
and thus allows the application of "Convert" for almost all
conversion problems.
***************************************************************
2. Getting started
Installation
To install "Convert" double-click the "Install" icon. This short
shell script will do the following things:
- Copying "reqtools.library" to the LIBS: directory.
- Copying "Cvt" to the C: directory.
Furthermore, you must have a directory from where "Convert" reads
its conversion description files. If this directory is not the
same as the one where "Convert" is placed, you must assign the
logical device "CVT:" to it.
If "Convert" starts, first it looks in the current directory for
conversion descriptions. If it cannot find any matching file
(with the extension ".cvt"), it tries to get files from "CVT:".
NOTE: If "Convert" cannot find any description file, it will
NOT work !
Starting "Convert"
You can start "Convert" by entering its name in the shell or by
double-clicking its icon.
If the program can locate at least one conversion description,
it opens a window which contains the control panel of "Convert".
This panel consists of following elements:
* Source file list *
This list on the left side of the buttons displays the names of
all files to be converted. The names are shown without path
name, except if you select two files in different directories
with the same name. Then the whole path name is displayed.
* Conversion list *
This list on the right side of the buttons displays the names
of the conversion description files which "Convert" could locate
at the start. The currently selected conversion description file
is shown by a high-lighted selection. By default the first name
of the list is selected.
* Button "Clear" *
You can use this button for deleting the current contents of the
source file list. If the files in this list have not been
converted yet, you will be asked to confirm your decision.
* Button "Add files..." *
If you click this button, a file requester will appear. You can
then select the files which you want to convert by clicking on
the file names while holding the SHIFT key. In addition there are
buttons for selecting and de-selecting all files and for pattern
matching (great, Nico ! :-) ).
Press the button "Ok" to add the selected files to the source file
list.
* Button "Remove" *
You can use this button for deleting the currently selected item
in the source file list. If the files in this list have not been
converted yet, you will be asked to confirm your decision.
* Button "Start" *
A click on this button starts the conversion process.
* Button "About..." *
Click this button to get short information about "Convert".
* Button "Quit" *
You can use this button for exiting "Convert". If the files in the
source file list have not been converted yet, you will be asked
to confirm your decision. You can also quit by clicking in the
close gadget of "Convert"'s window.
* Cycle-gadget "Replace Original/Target Directory"
This cycle-gadget can be used to toggle between the following two
modes:
1. replacement mode
2. duplication mode
The replacement mode is active, when the gadget shows the text
"Replace Original". Former versions of "Convert" (up to v1.12)
only provide this mode. In this mode "Convert" replaces the
original file with the converted version.
If you choose the duplication mode, a directory requester will
appear and you have to select a target directory, where "Convert"
will write the converted files. The name of the target directory
is then displayed within the cycle-gadget.
***************************************************************
3. Working with "Convert"
When you have started "Convert" from the shell or from workbench,
it will open a window which contains a small control panel.
The source file list on the left side of the buttons is empty,
so the buttons "Clear" and "Start" are "ghosted".
Whenever you want to append files to the source file list, press
the button "Add files". A file requester will appear which allows
you to select the desired files. Press the "Ok" button to
append the files to the source file list.
If you do not want to overwrite the old files with the converted
versions, then you can specify a target directory for the
converted files by pressing the cycle-gadget at the botton of the
window. When you have chosen a target directory, its name will
be displayed within the gadget.
Before you start the conversion process, make sure you have
selected the correct conversion description in the list on the
right side of the buttons. The current description is shown
beneath the list.
The conversion process can be started by pressing the "Start"
button. "Convert" will open a window which gives you a simple
trace about the conversion.
If the conversion description contains no syntax errors, the
conversion should be performed without any problem. Otherwise
you have to correct the description file with a text editor.
At the end "Convert" informs you with a simple requester about
the success of the conversion process.
If there were no problems, you can return to the control panel.
Usually you will want to clear the source file list f